// ScribbleDoc.h : interface of the CScribbleDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCRIBBLEDOC_H__FA3102A1_3B58_441A_9A2D_5C1A4CCAD052__INCLUDED_)
#define AFX_SCRIBBLEDOC_H__FA3102A1_3B58_441A_9A2D_5C1A4CCAD052__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"stroke.h"

class CScribbleDoc : public CDocument
{
protected: // create from serialization only
	CScribbleDoc();
	DECLARE_DYNCREATE(CScribbleDoc)
	CSize m_sizeDoc;

// Attributes
public:
	CTypedPtrList<CObList,CStroke*> m_strokeList;
	CPen* GetCurrentPen(){return &m_penCur;}
	CStroke *NewStroke();
	 void ReplacePen();
	 CSize GetDocSize(){return m_sizeDoc;}

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScribbleDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual void DeleteContents();
	protected:
	virtual BOOL SaveModified();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CScribbleDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	UINT m_nPenWidth;
	CPen m_penCur;
	void InitDocument();
	BOOL m_bThickPen;
	UINT m_nThinWidth;
	UINT m_nThickWidth;

// Generated message map functions
protected:
	//{{AFX_MSG(CScribbleDoc)
	afx_msg void OnEditClearall();
	afx_msg void OnPenThickline();
	afx_msg void OnUpdateEditClearall(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePenThickline(CCmdUI* pCmdUI);
	afx_msg void OnPenPenwidth();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SCRIBBLEDOC_H__FA3102A1_3B58_441A_9A2D_5C1A4CCAD052__INCLUDED_)
